import {
	ref
} from 'vue'

// 菜单分类
export let orderCates = [{
	id: 1,
	name: '家常小菜',
}, {
	id: 2,
	name: '面点',
}, {
	id: 3,
	name: '烘焙甜点',
}, {
	id: 4,
	name: '营养汤',
}, {
	id: 5,
	name: '减脂餐',
}]

// 当前展示的菜单列表
export let orderMenuList = ref([
	{
		id: 1,
		name: '番茄牛腩',
		image: '/static/other/x8W54T4a9rf9yeweQdxmLxbLtydjdh9oS7GsQsDFED5OEcJR1KDvTAshptWfB8DB.jpg',
		order_useNum: 10,
	},
	{
		id: 2,
		name: '番茄牛腩',
		image: '/static/other/x8W54T4a9rf9yeweQdxmLxbLtydjdh9oS7GsQsDFED5OEcJR1KDvTAshptWfB8DB.jpg',
		order_useNum: 10,
	}
])

// 分类选择项
export let orderCateSelectId = ref(1)

// 分类切换--查询菜单列表
export let selectOrderCate = (id) => {
	orderCateSelectId.value = id
}

// 购物车列表
export let carMenuList=ref([
	{
		id:1,
		orderMenuId:1
	}
])

